'user strict';

app.factory('loginService',function($http){
   return{
       login:function(user){
           var $promise=$http.post();
           $promise.then(function(msg){
               if(msg.data='success')
               {
                   console.log('success login')
               }
               else
               {
                   console.log('success fail')
               }
           });
       }
   }
});